import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { GovernanceComponent } from './governance.component';
import { EffectComponent } from './effect/effect.component';
import {UndergroundZComponent} from "./underground-z/underground-z.component";
import { HydrogeologicalmapComponent } from './hydrogeologicalmap/hydrogeologicalmap.component';

const routes: Routes = [{
  path: '',
  component: GovernanceComponent,
  children: [
    {
      path: 'hydrogeologicalmap',
      component: HydrogeologicalmapComponent,
    },
    {
      path: 'effect',
      component: EffectComponent,
    },
    {
      path: 'underground-z',
      component: UndergroundZComponent,
    }
  ],
}];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class GovernanceRoutingModule { }
